package com.itheima.controller;

import com.itheima.domain.Student;
import com.itheima.service.StudentService;

import java.net.SecureCacheResponse;
import java.util.Scanner;

/*
学生 用户交互类
键盘录入
输出语句

增
删
改
查
 */
public class StudentController extends BaseStudentController{


    public Student getStudentInfo(String sid) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        Student student = new Student();
        student.setSid(sid);
        student.setName(name);
        student.setAge(age);
        student.setBirthday(birthday);
        return student;
    }


}
